package com.jthinker.blog.dao;

import com.jthinker.blog.bean.entity.Post;
import com.jthinker.blog.bean.vo.PostFilter;
import com.jthinker.blog.bean.vo.QueryResult;

import java.util.List;

/**
 * User: Gang Chen
 * Date: 2015/6/26 22:13
 */
public interface PostDao extends BaseDao<Post, Long>
{
    QueryResult<Post> queryPagination(PostFilter filter);

    List<Post> queryRecentList(int count);

    List<Object[]> queryArchives();

    Post readDetail(Long id);
}
